package com.ys.entity.overseas;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TOS_ProductSelectionItem", catalog="Id")
public class TosProductSelectionItem extends BaseEntity<TosProductSelectionItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="ProductImg", nameJava="productImg", typeDataBase="varchar")
	private String productImg;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="FromCode", nameJava="fromCode", typeDataBase="varchar")
	private String fromCode;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="ProductTitle", nameJava="productTitle", typeDataBase="varchar")
	private String productTitle;
	@YsField(nameDataBase="ProductCategory", nameJava="productCategory", typeDataBase="varchar")
	private String productCategory;
	@YsField(nameDataBase="PurchaseAmount", nameJava="purchaseAmount", typeDataBase="decimal")
	private BigDecimal purchaseAmount;
	@YsField(nameDataBase="DeliveryAmount", nameJava="deliveryAmount", typeDataBase="decimal")
	private BigDecimal deliveryAmount;
	@YsField(nameDataBase="SuggestAmount", nameJava="suggestAmount", typeDataBase="decimal")
	private BigDecimal suggestAmount;
	@YsField(nameDataBase="ProfitAmount", nameJava="profitAmount", typeDataBase="decimal")
	private BigDecimal profitAmount;
	@YsField(nameDataBase="ProfitRatio", nameJava="profitRatio", typeDataBase="decimal")
	private BigDecimal profitRatio;
	@YsField(nameDataBase="PlatformId", nameJava="platformId", typeDataBase="bigint")
	private Long platformId;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TosProductSelectionItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TosProductSelectionItem setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getProductImg() {
		return productImg;
	}
	public TosProductSelectionItem setProductImg(String productImg) {
		this.productImg = productImg;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TosProductSelectionItem setCode(String code) {
		this.code = code;
		return this;
	}
	public String getFromCode() {
		return fromCode;
	}
	public TosProductSelectionItem setFromCode(String fromCode) {
		this.fromCode = fromCode;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TosProductSelectionItem setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public String getProductTitle() {
		return productTitle;
	}
	public TosProductSelectionItem setProductTitle(String productTitle) {
		this.productTitle = productTitle;
		return this;
	}
	public String getProductCategory() {
		return productCategory;
	}
	public TosProductSelectionItem setProductCategory(String productCategory) {
		this.productCategory = productCategory;
		return this;
	}
	public BigDecimal getPurchaseAmount() {
		return purchaseAmount;
	}
	public TosProductSelectionItem setPurchaseAmount(BigDecimal purchaseAmount) {
		this.purchaseAmount = purchaseAmount;
		return this;
	}
	public BigDecimal getDeliveryAmount() {
		return deliveryAmount;
	}
	public TosProductSelectionItem setDeliveryAmount(BigDecimal deliveryAmount) {
		this.deliveryAmount = deliveryAmount;
		return this;
	}
	public BigDecimal getSuggestAmount() {
		return suggestAmount;
	}
	public TosProductSelectionItem setSuggestAmount(BigDecimal suggestAmount) {
		this.suggestAmount = suggestAmount;
		return this;
	}
	public BigDecimal getProfitAmount() {
		return profitAmount;
	}
	public TosProductSelectionItem setProfitAmount(BigDecimal profitAmount) {
		this.profitAmount = profitAmount;
		return this;
	}
	public BigDecimal getProfitRatio() {
		return profitRatio;
	}
	public TosProductSelectionItem setProfitRatio(BigDecimal profitRatio) {
		this.profitRatio = profitRatio;
		return this;
	}
	public Long getPlatformId() {
		return platformId;
	}
	public TosProductSelectionItem setPlatformId(Long platformId) {
		this.platformId = platformId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TosProductSelectionItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TosProductSelectionItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TosProductSelectionItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TosProductSelectionItem tosProductSelectionItem(
		Long pid,
		String productImg,
		String code,
		String fromCode,
		String productName,
		String productTitle,
		String productCategory,
		BigDecimal purchaseAmount,
		BigDecimal deliveryAmount,
		BigDecimal suggestAmount,
		BigDecimal profitAmount,
		BigDecimal profitRatio,
		Long platformId,
		Integer status
			) {
		TosProductSelectionItem entity = new TosProductSelectionItem();
		entity.setPid(pid);
		entity.setProductImg(productImg);
		entity.setCode(code);
		entity.setFromCode(fromCode);
		entity.setProductName(productName);
		entity.setProductTitle(productTitle);
		entity.setProductCategory(productCategory);
		entity.setPurchaseAmount(purchaseAmount);
		entity.setDeliveryAmount(deliveryAmount);
		entity.setSuggestAmount(suggestAmount);
		entity.setProfitAmount(profitAmount);
		entity.setProfitRatio(profitRatio);
		entity.setPlatformId(platformId);
		entity.setStatus(status);
		return entity;
	}
}